from importlib import import_module

# def aaa(a:int,b:str):
#     print(a,b)
#     return str(a)+b
# class A:
#     pass
#
#
# if __name__ == "__main__":
#     # module = import_module("test1")
#     # a = list(module.__dict__)
#     # print(list(module.__dict__))
#     test = import_module('test', package='.')
#     print(test.hhh())
#     for s in test.__dir__():
#
#         item = test.__getattribute__(s)
#         if hasattr(item, "__name__"):
#             print(item.__name__)
#         else:
#             print(item.__class__.__name__)
#         print(type(item))
# print(type(A) == type)
# print(aaa.__annotations__)
#
# print(aaa.__code__)

import subprocess

result = subprocess.run(['ipconfig'], stdout=subprocess.PIPE)
print(result.stdout.decode('gbk'))
print(result.returncode)
# print(result.stdout)
# print(result.stdout.decode('utf-8'))
